package com.brave.commonly.utils.time;

/**
 * TimeUtils
 * <br/>
 * {@link @author} brave tao
 * <br/>
 * {@link @time} 2019/7/24
 * <br/>
 * {@link @description} 时间 相关
 */
public final class TimeUtils {
    private TimeUtils() {
        throw new RuntimeException("cannot be instantiated");
    }

    /**
     * 获取系统时间
     */
    public static long getSystemTime() {
        return System.currentTimeMillis();
    }

    public static TimeGenerates with(long time) {
        return TimeGenerates.newInstance(time);
    }

    public static TimeGenerates with() {
        return TimeGenerates.newInstance(getSystemTime());
    }
}